import 'package:flutter/material.dart';
import 'package:flutter_smart_heating/common/app.dart';
import 'package:flutter_smart_heating/ui/ui.dart';

class UiOpen extends StatelessWidget {
  const UiOpen({
    super.key,
    this.child,
    this.url = '',
  });
  final String url;
  final Widget? child;
  @override
  Widget build(BuildContext context) {
    return UiTap(
      onTap: () {
        App.push(url);
      },
      child: child,
    );
  }
}
